<template>
	<view class="about clearfix">
		<cu-custom bgColor="bg-white" isBack>
			<block slot="content">我的认证</block>
		</cu-custom>
		<view class="mt5 bg-white px15 flex align-center h55 f16">
			<view class="titles">姓名</view>
			<input v-model="name" placeholder-class="text-info" placeholder="请输入您的真实姓名" />
		</view>
		<view class="mt1 bg-white px15 flex align-center h55 f16">
			<view class="titles">身份证</view>
			<input v-model="idcard" placeholder-class="text-info" placeholder="请输入您的真实身份证号" />
		</view>
		<view class="flex align-center f12 py20 px15">
			<text class="text-red">注：</text>
			<text>请填入您</text>
			<text class="text-red">真实有效</text>
			<text>的姓名及身份证号</text>
		</view>
		<view class="shiming-button discenter f16 text-white" @click="renzheng">提交认证</view>
	</view>
</template>

<script>
import { mapState, mapActions } from 'vuex'
export default {
	data() {
		return {
			name:'',
			idcard:'',
			// paypwd:'',
			renzhengmoney:0,
			huodeYd:0,
			fangdaBs:0
		}
	},
	onLoad() {
		this.getData()
	},
	methods: {
		async getData() {
			let {
				data: { huodeYd, fangdaBs,sfrzMoney }
			} = await this.$http.post('user.shimingpage', {}, { tipConfig: { storeBlock: true } })
			this.huodeYd = huodeYd
			this.fangdaBs = fangdaBs
			this.renzhengmoney=sfrzMoney
		},
		async renzheng() {
			if(this.name==''){
				uni.showToast({
					title:'请填写真实姓名',
					icon:'none'
				})
				return false
			}
			if(this.idcard==''){
				uni.showToast({
					title:'请填写身份证号',
					icon:'none'
				})
				return false
			}
			
			this.pushPage('/pages/user/zhifu');
	
		}, 
	}
}
</script>

<style lang="less">
.titles{
	width:240rpx;
}
.shiming-button{
	width: calc(100% - 60rpx);
	left: 30rpx;
	position: fixed;
	bottom: 60rpx;
	height: 90rpx;
	border-radius: 10rpx;
	background-color: #0ea391;
}
</style>
